package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

/**
 * @author shiminghui
 * @date 2024/11/1 17:51
 * @description: TODO
 */
public interface WmChannelService extends IService<WmChannel> {
    /**
     * 获取所有频道
     *
     * @return
     */
    ResponseResult channelList();

    /**
     * 删除频道
     *
     * @param id
     * @return
     */
    ResponseResult deleteById(Long id);

    /**
     * 分页查询
     *
     * @param dto
     * @return
     */
    ResponseResult list(WmChannelDto dto);

    /**
     * 保存频道
     *
     * @param wmChannel
     * @return
     */
    ResponseResult saveWmChannel(WmChannel wmChannel);

    /**
     * 修改频道
     *
     * @param wmChannel
     * @return
     */
    ResponseResult update(WmChannel wmChannel);
}
